package com.asset.mgt.service.fallback;

import com.asset.mgt.service.feign.AssetOrderClient;
import org.asset.entity.Order;
import org.asset.until.R;
import org.springframework.stereotype.Component;

// 服务降级类
@Component
public class OrderAddFallback implements AssetOrderClient{

    @Override
    public R addOrder(Order order) {
        System.out.println("-----------降级服务");
        return R.fail("新增订单失败", null);
    }
}
